package jupiter.filters;

import java.util.regex.Matcher;

import jupiter.messaging.ApplicationAddressBook;
import jupiter.messaging.Inbox;
import jupiter.messaging.Message;
import jupiter.servlets.JabbifyServlet;
import jupiter.util.Timey;

import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Random;
import org.json.JSONException;

public class ExceptionFilter {
	Logger logger = LoggerFactory.getLogger(ExceptionFilter.class);
	public JSONObject create_exception(Message message){
		try {
			throw new Exception();
		} catch (Exception e) {
			logger.error("testing exception handling", e);
		}
		return null;
	}
	public JSONObject create_runtime_exception(Message message){
		throw new RuntimeException();
	}
}
